/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

//#ifdef PEP
//# 
//# package PEP;
//# 
//# import Client.Config;
//# import Client.StaticData;
//# import locale.SR;
//# import ui.controls.form.CheckBox;
//# import ui.controls.form.DefForm;
//# import ui.controls.form.DropChoiceBox;
//# import ui.controls.form.LinkString;
//# import ui.controls.form.SimpleString;
//# import ui.controls.form.SpacerItem;
//# import ui.controls.form.TextInput;
//# 
//# /**
//#  *
//#  * @author Vitaly
//#  */
//# public class PepForm extends DefForm {
//# 
//#ifdef PEP
//#     private CheckBox sndrcvmood;
//#ifdef PEP_TUNE
//#    private CheckBox rcvtune;
//#if android
//#    private CheckBox updatetune;
//#endif   
//#endif
//#ifdef PEP_ACTIVITY
//#    private CheckBox rcvactivity;
//#endif
//#ifdef PEP_LOCATION
//#    private CheckBox rcvlocation;
//#endif
//# 
//#endif
//#     DropChoiceBox activity;
//#     TextInput ti;
//#     LinkString updmood, updact;
//#     
//#     public PepForm() {
//#         super(SR.MS_PEP);
//#         
//#             itemsList.addElement(new SimpleString("Receive events", true));
//#             sndrcvmood = new CheckBox(SR.MS_USERMOOD, Config.getInstance().sndrcvmood);
//#             itemsList.addElement(sndrcvmood);
//#             updmood = new LinkString(SR.MS_USERMOOD) {
//#                 public void doAction() {
//#                      Config.getInstance().sndrcvmood = true;
//#                      new MoodList();
//#                 }
//#             }; 
//#             
//#ifdef PEP_TUNE
//#             rcvtune = new CheckBox(SR.MS_USERTUNE, Config.getInstance().rcvtune); 
//#             itemsList.addElement(rcvtune);
//#endif
//#ifdef PEP_ACTIVITY
//#             rcvactivity = new CheckBox(SR.MS_USERACTIVITY, Config.getInstance().rcvactivity);
//#             itemsList.addElement(rcvactivity);
//#             updact = new LinkString(SR.MS_USERACTIVITY) {
//#                 public void doAction() {
//#                      Config.getInstance().rcvactivity = true;
//#                      new ActivityList(midlet.BombusMod.getInstance().getDisplay());
//#                 }
//#             };
//#endif
//#ifdef PEP_LOCATION
//#             rcvlocation = new CheckBox("User location", Config.getInstance().rcvloc);
//#             itemsList.addElement(rcvlocation);
//#endif
//# 
//#             itemsList.addElement(new SpacerItem(10));
//#             itemsList.addElement(new SimpleString("Publish events", true));
//#             itemsList.addElement(updmood);
//#ifdef PEP_ACTIVITY
//#             itemsList.addElement(updact);
//#endif
//#ifdef PEP_LOCATION            
//#             LinkString updloc = new LinkString("Location") {
//#                 public void doAction() {
//#                      new LocationForm(StaticData.getInstance().roster);
//#                 }
//#             };
//#             itemsList.addElement(updloc);            
//#endif
//# 
//#ifdef PEP_TUNE
//#if android               
//#             itemsList.addElement(new SpacerItem(10));
//#             updatetune = new CheckBox("Scrobbled song", Config.getInstance().updatetune);
//#             itemsList.addElement(updatetune);
//#endif        
//#endif                
//#     }
//#     public void cmdOk() {        
//#         //publish(activity.getSelectedIndex(), ti.getText());
//#         Config.getInstance().sndrcvmood=sndrcvmood.getValue();
//#ifdef PEP_TUNE
//#         Config.getInstance().rcvtune=rcvtune.getValue();
//#endif
//#ifdef PEP_ACTIVITY
//#         Config.getInstance().rcvactivity=rcvactivity.getValue();
//#endif
//#ifdef PEP_LOCATION
//#         Config.getInstance().rcvloc = rcvlocation.getValue();
//#endif
//#ifdef PEP_TUNE
//#if android
//#         Config.getInstance().updatetune = updatetune.getValue();
//#endif        
//#endif        
//#         Config.getInstance().saveToStorage();
//#         parentView = sd.roster;
//#         destroyView();
//#     }   
//# }
//# 
//#endif
